/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #3498db;
}

a:hover {
    color: #2980b9;
}


/* 登录/注册页面 */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* 管理后台布局 */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
    text-align: center;
}

.user-info {
    margin-bottom: 30px;
    text-align: center;
}

.user-info p {
    margin-bottom: 10px;
}

.user-info a {
    color: #ecf0f1;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 10px;
}

.menu li a {
    display: block;
    padding: 10px;
    color: #ecf0f1;
    border-radius: 4px;
}

.menu li a:hover,
.menu li.active a {
    background-color: #3498db;
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: #ecf0f1;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #3498db;
    color: #fff;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
}

.search-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
}

/* 统计卡片 */
.dashboard {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* 员工详情 */
.profile-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.profile-row {
    display: flex;
    margin-bottom: 15px;
}

.profile-field {
    flex: 1;
    padding: 0 10px;
}

.profile-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #7f8c8d;
}


/*弹窗*/

/* 模态框样式 */
.modal1 {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 1; /* 位于顶层 */
    left: 0;
    top: 0;
    width: 100%; /* 覆盖整个屏幕 */
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* 半透明黑色背景 */
}

/* 模态框内容样式 */
.modal1-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    /* 添加滚动条 */
    max-height: 80vh;       /* 最大高度为视口高度的80% */
    overflow-y: auto;       /* 垂直方向自动滚动 */
}

/*滚动条样式*/

.modal-content::-webkit-scrollbar {
    width: 8px;
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;  /* 滚动条轨道背景 */
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;     /* 鼠标悬停时颜色 */
}

/* 关闭按钮样式 */
.close1 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close1:hover { color: #333; }

/* 表单样式 */
.form1-group1 { margin-bottom: 15px;
    display: flex;
    align-items: center;}
.form1-group1 label { display: block;
    margin-bottom: 5px;
    width: 100px;
    margin-right: 15px;
    text-align: right;}
.form1-group1 input { width: 100%;
    padding: 8px;
    box-sizing: border-box;
    flex: 1; }
